{#**
*
* 功能描述（页眉模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="素食" />
        <meta name="Description" content="素食网 - 最好吃的素食" />
        {#if $refUrl|default:false #}
            <meta http-equiv="refresh" content="500;URL={#$refUrl#}">
            {#/if#}
            <title>{#$title#} - 最好吃的素食 - Powered by 索疋等</title>
            <link rel="shortcut icon" href="images/favicon.ico" />
            <link rel="icon" href="images/animated_favicon.gif" type="image/gif" />
            <!--<link rel="stylesheet" type="text/css" href="css/semantic.min.css" />-->
            <link rel="stylesheet" type="text/css" href="css/cake.css" />
            <link rel="stylesheet" type="text/css" href="css/jbox.css" />
            <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
            <script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
            <script type="text/javascript" src="js/jquery.jBox-2.3.min.js"></script>
            <script type="text/javascript" src="js/jquery.jBox-zh-CN.min.js"></script>
            <script type="text/javascript" src="js/semantic.js"></script>
            <script type="text/javascript" src="js/common.js"></script>
            <script type="text/javascript" src="js/transport_jquery.js"></script>

            {#if $curJs|default:false #}
                <script type="text/javascript" src="js/{#$curJs#}.js"></script>
            {#/if#}
            <script type="text/javascript">
                if (!window.console)
                    window.console = {};
                window.onerror = function(errorMessage, scriptURL, lineNumber)
                {
                    if (lineNumber > 0)
                        alert("JS脚本出错\n" + errorMessage + "\n" + scriptURL + " 第" + lineNumber + "行")
                    return false;
                }
            </script>
    </head>
    <body>
        {#if $username|default:false#}
            <div class="content">
                <div class="loginInfo">
                    <div class="title">
                        <span>
                            <a href="{#$web_root['web']#}" target="_blank">WEB系统</a>
                        </span>
                        <span>
                            <a href="{#$web_root['oas']#}" target="_blank">OA系统</a>
                        </span>
                        <span>
                            当前登录：{#$truename#}
                        </span>
                        <span>
                            <a href="index.php?action=login.tologin">切换用户</a>
                        </span>
                        <span>
                            <a href="index.php?action=login.logout">退出</a>
                        </span>
                    </div>
                </div>
                <div class="header">
                    <div class="header_logo"></div>
                </div>
                <div class="ui menu">
                    <a class="item {#if !isset($active)#}active{#/if#}" href = "index.php">
                        主页
                    </a>
                    <a class="item {#if isset($active) and ($active == 'cake')#}active{#/if#}" href = "index.php?action=cake.showlist">
                        产品管理
                    </a>
                    <a class="item {#if isset($active) and ($active == 'comment')#}active{#/if#}" href = "index.php?action=comment.showlist">
                        评价管理
                    </a>
                    <a class="item {#if isset($active) and ($active == 'order')#}active{#/if#}" href = "index.php?action=order.showlist">
                        订单管理
                    </a>
                    <a class="item {#if isset($active) and ($active == 'msg')#}active{#/if#}" href = "index.php?action=lvmsg.showlist">
                        留言管理
                    </a>
                    <a class="item {#if isset($active) and ($active == 'member')#}active{#/if#}" href = "index.php?action=user.showlist">
                        会员管理
                    </a>
                    <a class="item {#if isset($active) and ($active == 'voucher')#}active{#/if#}" href = "index.php?action=voucher.showlist">
                        代金券管理 
                    </a>
                    <a class="item {#if isset($active) and ($active == 'conf')#}active{#/if#}" href = "index.php?action=conf.index">
                     	系统设置
                    </a>
                    <a class="item" target='_blank' href = "index.php?action=msgsys.index">
                        短信后台 
                    </a>
                </div>
            </div>
        {#else#}
            <div class="header">
                <div class="header_logo"></div>
            </div>
        {#/if#}
